package edu.njfu.activitybootmode

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.text.style.TabStopSpan
import android.util.Log
import android.widget.Button

class SingleTaskActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_single_task)
        Log.d("SingleTaskActivity",this.toString())
        Log.d("SingleTaskActivity","Taskid is $taskId")
        val button6=findViewById<Button>(R.id.button6)
        button6.setOnClickListener {
            val intent = Intent(this,StandardActivity::class.java)
            startActivity(intent)
        }
        val button7=findViewById<Button>(R.id.button7)
        button7.setOnClickListener {
            val intent = Intent(this,SingleTaskActivity::class.java)
            startActivity(intent)
        }
    }

    override fun onDestroy() {
        super.onDestroy()
        ActivityController.removeActivity(this)
    }
}